returns the index of the given payment in the list of payments, or -1 if the payment is not in the list.